
CollisionManager = {
	colliding = function(entity1, entity2)
		local box1x = entity1.attributes.box.x;
		local box1y = entity1.attributes.box.y;
		local box1w = entity1.attributes.box.w;
		local box1h = entity1.attributes.box.h;
		
		local box2x = entity2.attributes.box.x;
		local box2y = entity2.attributes.box.y;
		local box2w = entity2.attributes.box.w;
		local box2h = entity2.attributes.box.h;
		
	    if box1x > box2x + box2w or 
	       box1y > box2y + box2h or 
	       box2x > box1x + box1w or 
	       box2y > box1y + box1h    
	    then
	        return false                -- sem colisão
	    else
	        return true                 -- colidiu
	    end
	end
};